﻿using BusinessLogic;
using Model;
using Model.CustomDataType;
using Model.Medicine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace QlpmServer
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
            // Unreffff
            //MedicineBL m = new MedicineBL();
            //PatientBL pl = new PatientBL();
           // MyQueryBL q = new MyQueryBL();

            //MedUnit[] me = m.getAllMedUnit();
            //int a = 0;
            //string query = "select cost from medicinedetail where medicineid="+1;
            //String[] b= q.doQuery(query);
            //int a =0;
            //string[] te = q.doQuery("select * from worker");
            //String s = "le van a<<>>12<<>>HCM<<>>Chưa có<<>>Chưa có";
            //string[] re = s.Split(new string[] { "<<>>" }, StringSplitOptions.None);
            //int aa = 0;
            //CMDateTime cm =q.getCMDateTime(1992, 10, 10);
            //Patient[] p = pl.getPatientsByDate(cm);
            //bool b = m.addMedGroup(new MedGroup("Viên"));
            //if(b)
            //{
            //    MessageBox.Show("Add Ok");
            //}
            //else
            //{
            //    MessageBox.Show("Add NOT Ok");
            //}
            //int aa = 0;

                
        }
    }
}
